package com.xz.knowledgeDuplication.bean;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.stereotype.Component;

/**
 * 自定义后置处理器
 *
 * @author 召
 * @date 2022-06-14 21:43:23
 */
@Component
public class MySelfBeanFactoryPostProcessor implements BeanFactoryPostProcessor {

    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory configurableListableBeanFactory) throws BeansException {
        System.out.println("调用自定义的BeanFactoryPostProcessor");
    }
}
